package com.t213.smbms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.t213.smbms.entity.Role;
import com.t213.smbms.mapper.RoleMapper;
import com.t213.smbms.service.RoleService;

@Service("RoleService")
public class RoleServiceImpl implements RoleService{

	private RoleMapper rolemapper;
	
	
	@Autowired
	public void setRolemapper(RoleMapper rolemapper) {
		this.rolemapper = rolemapper;
	}



	@Override
	public List<Role> findRole() {
		return rolemapper.find();
	}

}
